package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 b_order
 * 
 * @author ruoyi
 * @date 2023-02-14
 */
public class BOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 商家ID */
    @Excel(name = "商家ID")
    private Long businessid;

    /** 桌号 */
    @Excel(name = "桌号")
    private Long tableid;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long memberid;

    /** 使用的优惠券 */
    @Excel(name = "使用的优惠券")
    private Long couponid;

    /** 订单总额 */
    @Excel(name = "订单总额")
    private BigDecimal totalamount;

    /** 优惠券抵扣金额 */
    @Excel(name = "优惠券抵扣金额")
    private BigDecimal couponamount;

    /** 应付金额 */
    @Excel(name = "应付金额")
    private BigDecimal payamount;
    @Excel(name = "创建时间")
    private Date createtime;

    /** 支付方式1.微信2.支付宝3.人脸 */
    @Excel(name = "支付方式1.微信2.支付宝3.人脸")
    private Long paytype;

    /** 支付状态1未支付2已支付 */
    @Excel(name = "支付状态1未支付2已支付")
    private Long paystatus;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBusinessid() {
        return businessid;
    }

    public void setBusinessid(Long businessid) {
        this.businessid = businessid;
    }

    public Long getTableid() {
        return tableid;
    }

    public void setTableid(Long tableid) {
        this.tableid = tableid;
    }

    public Long getMemberid() {
        return memberid;
    }

    public void setMemberid(Long memberid) {
        this.memberid = memberid;
    }

    public Long getCouponid() {
        return couponid;
    }

    public void setCouponid(Long couponid) {
        this.couponid = couponid;
    }

    public BigDecimal getTotalamount() {
        return totalamount;
    }

    public void setTotalamount(BigDecimal totalamount) {
        this.totalamount = totalamount;
    }

    public BigDecimal getCouponamount() {
        return couponamount;
    }

    public void setCouponamount(BigDecimal couponamount) {
        this.couponamount = couponamount;
    }

    public BigDecimal getPayamount() {
        return payamount;
    }

    public void setPayamount(BigDecimal payamount) {
        this.payamount = payamount;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getPaytype() {
        return paytype;
    }

    public void setPaytype(Long paytype) {
        this.paytype = paytype;
    }

    public Long getPaystatus() {
        return paystatus;
    }

    public void setPaystatus(Long paystatus) {
        this.paystatus = paystatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("businessid", getBusinessid())
            .append("tableid", getTableid())
            .append("memberid", getMemberid())
            .append("couponid", getCouponid())
            .append("createtime", getCreatetime())
            .append("totalamount", getTotalamount())
            .append("couponamount", getCouponamount())
            .append("payamount", getPayamount())
            .append("paytype", getPaytype())
            .append("paystatus", getPaystatus())
            .toString();
    }
}
